<template>
  <div class="view-account background-img">
    <div class="view-account-container">
      <div class="view-account-title-container">
        <div class="view-account-logo">
          <img
            style="width: 55px; height: auto"
            src="../../../assets/img/logo.png"
            alt="加载失败"
          />
        </div>
        <p class="view-account-title">Maintenance Operating System</p>
      </div>
      <div class="login-form-container">
        <h3 class="login-form-title">账号密码登录</h3>
        <div class="login-form-style">
          <login-form></login-form>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import LoginForm from "./login-form/LoginForm.vue";
</script>

<style lang="less" scoped>
.view-account {
  display: flex;
  height: 100vh;
  width: 100vw;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: auto;

  &-container {
    height: 350px;
    width: 460px;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    background: rgba(176, 226, 255, 0.55);
  }

  &-title-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  &-logo {
    display: flex;
  }

  &-title {
    display: flex;
    font-family: KaiTi, sans-serif;
    color: #ffffff;
    font-size: 28px;
    font-weight: 500;
  }
}

.background-img {
  background: url("../../../assets/img/login.jpg");
}

.login-form-title {
  color: #ffffff;
  font-weight: 500;
  font-size: 18px;
}

.login-form-container {
  margin-top: 25px;
}

.login-form-style {
  margin-top: 25px;
}
</style>
